package com.job.GaoYuXuan.Homework0707.Example1;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-08 15:21:23
 */
public class ClassDemo1 {
    public String name = "金老师";
    int age = 20;
    private double weight;

    public void show1(){
        System.out.println("Show1!");
    }

    void show2(){
        System.out.println("Show2!");
    }

    private void show3(){
        System.out.println("Show3!");
    }

    public ClassDemo1() {
    }

    ClassDemo1(String name, int age, double weight) {
        this.name = name;
        this.age = age;
        this.weight = weight;
    }

    private ClassDemo1(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        ClassDemo1 teacher = new ClassDemo1("John");
        teacher.show3();
    }
}